<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>文件列表</title>
    <link rel="stylesheet" href="../lib/layui/css/layui.css" media="all">
    <script type="text/javascript" src="../lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="../js/xadmin.js"></script>
</head>
<body>
<a th:href="${easyDarwin}" target="_blank">跳转到EasyDarwin</a>
<br>
<table class="layui-table">
    <tr class="layui-table-header">
        <td>文件名</td>
        <td>文件路径</td>
        <td>URL</td>
        <td>RTSP</td>
        <td>操作</td>
    </tr>
    <tr th:each="file:${fileList}" class="layui-table-body">
        <td th:text="${file.name}">xxx.mp4</td>
        <td th:text="${file.path}" >D:/Video/xxx/xxx.mp4</td>
        <td ><a th:onclick="|xadmin.open('点播','${file.url}',1300,800)|" th:text="${file.url}" class="">/video/xxx/xxx.mp4</a></td>
        <td th:text="${file.rtsp}">rtsp://</td>
        <td>
            <a class="layui-btn layui-btn-xs" th:href="|/stream/start?path=${file.path}|">开启直播</a>
<!--            <a class="layui-btn layui-btn-xs" target="_blank" th:href="|/video?url=${file.url}|">视频分析</a>-->
            <a class="layui-btn layui-btn-xs" th:onclick="|xadmin.open('点播','/video?url=${file.url}',1300,800)|">视频分析</a>
<!--            <a class="layui-btn layui-btn-xs" th:onclick="|xadmin.open('配置列表','/camera/configList?url=${file.url}',400,300)|">点位配置</a>-->
            <a class="layui-btn layui-btn-xs" target="_blank" href="http://192.168.1.100:18080/xsy/platform/platform.html#/management/camera/list">点位配置</a>
            <a class="layui-btn layui-btn-danger layui-btn-xs" th:href="|/stream/stop?path=${file.path}|">停止直播</a>
        </td>
    </tr>

</table>
</body>
</html>